<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <ul>
            <!-- 对象有多少个属性就会产生多少个li -->
            <!-- <li v-for="v in obj">{{ v }}</li> -->

            <!-- <li v-for="(value, key) in obj">{{ value }} -- {{ key }} </li> -->

            <!-- 指定次数的循环,i就是从1到这个次数 -->
            <li v-for="i in 5">{{ i }}</li>
        </ul>
    </div>
    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    obj: {
                        name: 'jack',
                        age: 16,
                        sex: '男'
                    }
                }
            },
        })
    </script>
</body>
</html>